package com.mall.order.dto;

import com.mall.commons.result.AbstractRequest;
import com.mall.commons.tool.exception.ValidateException;
import com.mall.order.constant.OrderRetCode;
import lombok.Data;

/**
 * 获取秒杀商品的request
 * created by feng on 7/27/21
 */

@Data
public class SecKillListRequest extends AbstractRequest {
    private Integer sessionId;

    @Override
    public void requestCheck() {
        if(sessionId == null){
            throw new ValidateException(OrderRetCode.REQUISITE_PARAMETER_NOT_EXIST.getCode(), OrderRetCode.REQUISITE_PARAMETER_NOT_EXIST.getMessage());
        }
    }
}